package com.syyo.gulimall.product.domain.req;

import com.syyo.common.valid.AddGroup;
import com.syyo.common.valid.EditGroup;
import lombok.Data;


import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 品牌
 *
 * @author syyo
 * @email syyo@gmail.com
 * @date 2021-01-20 09:32:12
 */
@Data
public class BrandReq implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 品牌id
     */
    @NotNull(message ="品牌id不能为空",groups = {EditGroup.class})
    private Long brandId;
    /**
     * 品牌名
     */
    @NotBlank(message ="品牌名不能为空",groups = {AddGroup.class})
    private String name;
    /**
     * 品牌logo地址
     */
    private String logo;
    /**
     * 介绍
     */
    @NotBlank(message ="介绍不能为空",groups = {AddGroup.class})
    private String descript;
    /**
     * 显示状态[0-不显示；1-显示]
     */
    private Integer showStatus;
    /**
     * 检索首字母
     */
    @NotBlank(message ="检索首字母不能为空",groups = {AddGroup.class})
    private String firstLetter;
    /**
     * 排序
     */
    @Min(value = 1 , message ="品牌名不能为空")
    private Integer sort;
}